import React from 'react';
import { FieldNodeSchema } from '@/app/codeTreeSlice';
import renderCarouselPost from './renderCarouselPost';
import JourneyAvailPackListProd from './JourneyAvailPackListProd';
import JourneyPlanListProd from './JourneyPlanListProd';
import SubscriptionListProd from './SubscriptionListProd';
import NotificationBarProd from './NotificationBarProd';
import renderSinglePost from './renderSinglePost';
import renderFloor from './renderFloor';
import renderDITOMCCMPost from './renderDITOMCCMPost';
import renderDITOGCPPost from './renderDITOGCPPost';
import renderGraphicPost from './renderGraphicPost';
import renderQuickRedemption from './renderQuickRedemption';
import renderDITOCountdownPost from './renderDITOCountdownPost';
import renderDITOMultiCountdownPosts from './renderDITOMultiCountdownPosts';
import renderTmFamilyPlanDetails from './renderTmFamilyPlanDetails';
import renderDITOSraBanner from './renderDITOSraBanner';
import renderAppFooter from './renderAppFooter';
import renderDITOCarouselBanner from './renderDITOCarouselBanner';
import renderMccmPost from './renderMccmPost';
import renderMarketingOfferList from './renderMarketingOfferList';
import renderMptSpecialOffer from './renderMptSpecialOffer';
import renderMptDashboard from './renderMptDashboard';
import renderBalanceDashboardWebProd from './renderBalanceDashboardWebProd';
import BillingTrendsWebProd from './BillingTrendsWebProd';

export default function renderStaticTextStyle(
  focusComponent: FieldNodeSchema | undefined,
  handleChange: (value: any, key: string) => void,
) {
  if (focusComponent?.type === 'DITOCountdownPost') {
    return renderDITOCountdownPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'DITOMultiCountdownPosts') {
    return renderDITOMultiCountdownPosts(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'DITOMCCMCarouselPost') {
    return renderDITOMCCMPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'DITOGCPFloorPoster') {
    return renderDITOGCPPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'CarouselPost') {
    return renderCarouselPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MonthlyWholesalesAmountProd') {
    return renderCarouselPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MembershipWidgetProd') {
    return renderCarouselPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'JourneyAvailPackListProd') {
    return JourneyAvailPackListProd(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'JourneyPlanListProd') {
    return JourneyPlanListProd(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'SubscriptionListProd') {
    return SubscriptionListProd(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'NotificationBarProd') {
    return NotificationBarProd(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'AppFooterProd') {
    return renderAppFooter(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'AccountBalanceDetailProd') {
    return renderAppFooter(focusComponent, handleChange);
  }

  if (focusComponent?.type === 'ESalesBulletinProd') {
    return renderCarouselPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'ESalesInventoryProd') {
    return renderCarouselPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'SinglePost') {
    return renderSinglePost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'GraphicPost') {
    return renderGraphicPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'FloorPoster') {
    return renderFloor(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'QuickRedemption') {
    return renderQuickRedemption(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'TmFamilyPlanDetails') {
    return renderTmFamilyPlanDetails(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'DITOSraBanner') {
    return renderDITOSraBanner(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'DITOCarouselBanner') {
    return renderDITOCarouselBanner(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MarketingBannerProd') {
    return renderMccmPost(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MarketingOfferListProd') {
    return renderMarketingOfferList(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MptSpecialOffer') {
    return renderMptSpecialOffer(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'MptDashboard') {
    return renderMptDashboard(focusComponent, handleChange);
  }
  if (focusComponent?.type === 'BalanceDashboardWebProd') {
    return renderBalanceDashboardWebProd(focusComponent, handleChange);
  }
  if (['BillingTrendsWebProd', 'UsageTrendsProd', 'UsageTrendsProd2'].includes(focusComponent?.type || '')) {
    return BillingTrendsWebProd(focusComponent, handleChange);
  }

  return <></>;
}
